package com.xcity.game.activity2.share;

import com.xcity.db.entity.Player;
import com.xcity.pomelo.request.Share2Request;
import com.xcity.pomelo.response.Share2Response;

public interface ShareAction {
	
	// 未分享不能领奖
	byte STATE_CAN_NOT_REWARD = 0;
	// 可领奖
	byte STATE_CAN_REWARD = 1;
	// 已领奖
	byte STATE_REWARDED = 2;

	Share2Response share(Player player, Share2Request req) throws ShareException;
	
	Share2Response reward(Player player, Share2Request req) throws ShareException;
	
	boolean isShared(Player player);
	
}
